import Day from '@/views/DayPage.vue'
import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path:'/',
    name:'day',
    component:Day
  },
  {
    path:'/month',
    name:'month',
    component:()=>import('../views/MonthPage.vue')
  },
{
  path:'/year',
  name:'year',
  component:()=>import('../views/YearPage.vue')
},
{
  path:'/:pathMatch(.*)*',
  name:'default',
  redirect:'/'

}
]
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
